@media (min-width: 480px) {
    #logo-sidebar {
        width: 300px;
        height: auto;
    }
}

@media (max-width: 480px) {
    .text-right {
        font-size: 18px !important;
    }

    .img {
        max-width: 250px !important;
    }

    .clients-name {
        font-size: 25px;
        text-align: justify;
    }

    footer span {
        font-size: 18px;
    }
}

@media (max-height: 800px) {
    .projects {
        height: auto;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    footer span {
        font-size: 25px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        transform: translateY(-100%);
        border: none;
        z-index: 100;
    }

    .sidebar.open {
        transform: translateY(0);
    }

    .menu-icon {
        display: block;
    }

    #square2 {
        display: block;
    }

    nav ul {
        margin-top: 0;
    }

    .contact {
        border-bottom: 1px solid #4E5053;
        border-top: 1px solid #4E5053;
    }

    .content {
        display: flex;
        flex-direction: column;
        gap: 20px;
        margin-left: 0;
    }

    .projects {
        height: auto;
        gap: 2em;
    }

    .text-right {
        height: auto;
        max-width: 88%;
        font-size: 22px;
        text-align: left;
    }

    .container {
        margin-top: 20px;
        width: 100%;
        height: auto;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }

    .container div {
        display: flex;
        justify-content: center;
        flex-direction: row;
    }

    .img {
        max-width: 500px;
        height: auto;
        object-fit: cover;
        position: relative;
    }

    .group1 {
        flex-direction: row-reverse;
    }

    .img1 {
        width: 500px;
        margin-left: 15%;
        margin-top: 10%;
        transform: rotate(25.34deg);
        z-index: 0;
    }

    .img2 {
        width: 350px;
        margin-left: -20%;
        margin-top: 10%;
        transform: rotate(-9.27deg);
        z-index: 3;
    }

    .img3 {
        width: 600px;
        margin-left: 0%;
        margin-bottom: 0%;
        transform: rotate(12.28deg);
        z-index: 1;
    }

    .img4 {
        width: 350px;
        margin-left: -20%;
        margin-top: -20%;
        transform: rotate(11.17deg);
        z-index: 3;
    }

    .img5 {
        width: 550px;
        margin-left: 25%;
        margin-top: -20%;
        transform: rotate(-17.29deg);
        z-index: 3;
    }

    .img6 {
        width: 500px;
        margin-left: -20%;
        margin-top: -55%;
        transform: rotate(-21.28deg);
        z-index: 3;
    }

    footer {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 10px;
    }

    footer span {
        text-align: center;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .sidebar {
        width: 100%;
        height: auto;
        transform: translateY(-100%);
        border: none;
        z-index: 100;
    }

    .sidebar.open {
        transform: translateY(0);
    }

    .menu-icon {
        display: block;
    }

    #square2 {
        display: block;
    }

    nav ul {
        margin-top: 0;
    }

    .contact {
        border-bottom: 1px solid #4E5053;
        border-top: 1px solid #4E5053;
    }

    .content {
        display: flex;
        flex-direction: column;
        gap: 20px;
        margin-left: 0;
    }

    .text-right {
        max-width: 90%;
        font-size: 25px;
    }

    .img {
        max-width: 350px;
        height: auto;
        object-fit: cover;
        position: relative;
    }

    .img4 {
        margin-left: 8%;
    }

    .img6 {
        margin-left: -10%;
    }

    .clients-name {
        font-size: 30px;
        text-align: justify;
    }

    footer {
        align-items: center;
    }
}

@media (min-width: 1025px) and (max-width: 1444px) {
    .text-right {
        font-size: 32px;
    }

    .img {
        max-width: 300px;
        height: auto;
        object-fit: cover;
        position: relative;
    }

    .img3 {
        transform: rotate(12.28deg) scale(1.3);
        z-index: 2;
    }


    .img6 {
        margin-left: 10%;
    }
}

@media (min-width: 1921px) {
    .img2 {
        margin-left: 80%;
    }

    .img3 {
        margin-left: -25%;
        margin-bottom: -50%;
        transform: rotate(12.28deg);
        z-index: 2;
    }
    
    .img4 {
        margin-left: 60%;
    }
    
    .img5 {
        margin-left: -20%;
        margin-bottom: -25%;
        transform: rotate(-17.29deg);
        z-index: 3;
    }
    
    .img6 {
        margin-left: 45%;
    }
}